<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    {{message}}
</div>
<script src="vue.js"></script>
<script>
    var mess = {
        message:'hello'
    }
    var vm = new Vue({
        el:'#app',
        data:mess
    });
    //把整个指向改掉了
    mess.name = 1;
    //实例创建后原本不存在的属性，添加上不会生效
    /* vm.$data = {message:'newHello'}
    //这是开辟了一个新的空间
    mess = {message:'hello world'}*/
    //改变了同一个空间里的内容
    //mess.message = 'world'
    /*  data = mess = {}
        mess = {name:1}
        data = {}*/
</script>
</body>
</html>